<template>
  <div></div>
</template>
<script setup>
import { ref, defineExpose } from 'vue'

const childValue = ref('我是子组件的数据')

const childMehod = () => {
  console.log('我是子组件的方法')
}

defineExpose({
  childValue,
  childMehod
})
</script>
<style lang="less"></style>
